<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script language="JavaScript" src="js/prototype.js"></script>
<script language="JavaScript" src="js/ProcessListener.js"></script>
<script>
var first=true;
function ahxu(){
	if($("xmlContent").readyState=="complete") $("xmlShow").innerHTML=$("xmlContent").transformNode($("xmlStyle"));
	if(first) {setInterval("reload()",1000);first=false;}
}
function reload(){
	$("xmlContent").load("reportItemXml.jsp?pid=ahxu");
}
//alert($("xmlContent"));
//$("xmlContent").load("reportItemXml.jsp?pid=ahxu");
//alert($("xmlContent").xml);
//$("xmlShow").innerHTML=$("xmlContent").transformNode($("xmlStyle"));
</script>
</head>
<body>

<div id="xmlShow"></div>

<xml id="xmlStyle" src="reportItemXls.xsl"></xml>
<xml id="xmlContent" async="true" src="reportItemXml.jsp?pid=ahxu" onreadystatechange="ahxu()"></xml>


</body>
</html>